<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/sys/log/";  //应用的地址名
String listActionName = basePath+"SysUserOperateLog.action?op=searchjs";
int curryear = new Date().getYear()+1900;
int currMonth = new Date().getMonth()+1;
%>
<script type="text/javascript">
    		$(function(){
    		$("#opdate").datebox();
    		//$('#year').combobox();
    		//$('#month').combobox();
    		$('#year').val('<%=curryear%>');
    		$('#month').val('<%=currMonth%>');
			//表格初始化
			$('#searchTable').grid({
				//title:'<div style="text-align:center;font-size:17">用户操作日志查询</div>',
				title:[<ce:menu/>],
				url:'<%=listActionName%>',
				queryParams:{
				  "search.year":"<%=curryear%>",
				  "search.month":"<%=currMonth%>",
				  "search.funname":"",
				  "search.module":"",
				  "search.user":"",
				  "search.ip":"",
				  "search.opdate":""  },  //用于查询的参数以及初始值
				//表头列，不建议改动
				frozenColumns:[[   
				  {field:'vcFunname',title:'菜单名',width:120,sortable:true}
				]],
				//数据列，根据显示的内容进行修改
				columns:[[   
						{field:'vcModule',title:'操作功能',width:120,sortable:true},
						{field:'vcOperator',title:'操作用户',width:80,sortable:true},
						{field:'dtTime',title:'操作时间',width:120,sortable:true},
						{field:'vcIpAddr',title:'访问者IP',width:120,sortable:true},
						{field:'vcUrl',title:'访问路径',width:350,sortable:true}
				]],
				//功能按钮组
                toolbar:[<ce:jsonBtn/>]
			});
			//查询操作
			$('#search').click(function(){
                defaultSearchAction({'opdate':$('#opdate').datebox('getValue')});
            });		
		});	
		//点击帮助按钮后的操作：打开帮助界面
		function openHelpPage(){
		    defaultOpenWindow('<%=path%>/sys/menu/SysMenuHelp_look.action?chkSelf=<%=request.getAttribute("menuId").toString() %>','帮助信息查看',600,600);
		}
    
    </script>
<html>
  <head>
    <base href="<%=basePath%>"></base>
    <title><%=com.ce.util.RegeditUtil.getRegeditStringValue("SYSTEM_SEG_NAME") %></title>
  </head> 
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr height="30">
    <td>
    <div id="searchDiv" class="searchDiv">
     <div id="searchLeft" style=" width:85%; float:left">
       <div id="searchWrite"  class="searchWrite">
       所属年份：<select type="text" id="year" name="year" style="width:60px">
       <% for(int i=curryear-2;i<=curryear;i++){ %>
       <option value="<%=i %>"><%=i %></option>
       <%} %>
       </select>
       所属月份：<select type="text" id="month" name="month" style="width:60px">
       <option value="1">1</option>
       <option value="2">2</option>
       <option value="3">3</option>
       <option value="4">4</option>
       <option value="5">5</option>
       <option value="6">6</option>
       <option value="7">7</option>
       <option value="8">8</option>
       <option value="9">9</option>
       <option value="10">10</option>
       <option value="11">11</option>
       <option value="12">12</option>
       </select>
       操作功能：<input type="text" id="module" name="module" style="width:80px">操作用户：<input type="text" id="user" name="user" style="width:80px">
       </div>
       <div id="searchAuto" class="searchAuto" >  
       操作时间：<input type="text" id="opdate" name="opdate" class="calendarFocus" style="width:90px" readonly="true">访问者IP：<input type="text" id="ip" name="ip" style="width:140px">菜单名：<input type="text" id="funname" name="funname" style="width:120px">
       </div>
     </div>
     <div id="searchRight" class="searchRight" style="padding-top:1px">
      <a id="search" href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-search">查询</a>
     </div>
   </div>
    </td>
  </tr>
  <tr>
    <td colspan="2"><div id="searchTable"></div></td>
  </tr>
</table>
</body>
</html>
   
   

